<template>
	<view>
		<view class="" v-for="(item,index) in list" :key="index" @click="jump(`/pageB/noticeList/noticeInfo?id=${item.id}&type=${type}&name=详情`)">
			<view class="time">
				{{item.createtime}}
			</view>
			<view class="news">
				<image :src="$fun.imgUrl(item.image)" mode=""></image>
				<view class="text">
					<!-- 关于提现系统升级问题关于提现系统升级问题关于提现系统升级问题… -->
					<u--text class="text" size='14' :lines="2" :text="item.title"></u--text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[],
				type:null
			}
		},
		onLoad(options) {
			uni.setNavigationBarTitle({
				title:options.name
			})
			// 新闻
			this.type = options.type
			 this.$fun.ajax.post('news/index',{type:options.type}).then(res => {
				 console.log(res)
				this.list = res.data;
			})
		},
		methods: {
			jump(url){
				this.$fun.jump(url)
			}
		}
	}
</script>

<style lang="scss">
page{
	background: #F1F3F6;
}
.time{
	font-family: PingFangSC, PingFang SC;
	font-weight: 400;
	font-size: 24rpx;
	color: #999999;
	line-height: 24rpx;
	text-align: center;
	font-style: normal;
	margin: 30rpx 0;
}
.news{
	width: 690rpx;
	height: 120rpx;
	background: #FFFFFF;
	border-radius: 24rpx;
	display: flex;
	align-items: center;
	margin: 0 auto;
	box-sizing: border-box;
	padding: 20rpx;
	image{
		width: 80rpx;
		height: 80rpx;
		margin-right: 20rpx;
	}
	.text{
		width: 550rpx;
		height: 80rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: bold;
		font-size: 28rpx;
		color: #333333;
		font-style: normal;
	}
}
</style>
